<%-- 
    Document   : requerimientos
    Created on : 07/10/2010, 06:30:36 PM
    Author     : WILLIAM
--%>

<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@taglib prefix="t" uri="http://myfaces.apache.org/tomahawk"%>
<%@taglib prefix="r" uri="http://richfaces.ajax4jsf.org/rich" %>
<%@taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<script language="javascript" src="../js/funciones.js"></script>
<link href="/sistemas/Estilos/estilosEsymons.css" rel="stylesheet" type="text/css" />

<f:view>
<h:form>
<table width="100%" border="0">
  <tr>
    <td align="left" class="texto3">
        <h:outputLabel value="Reporte de Requerimientos" styleClass="texto3" /></td>
  </tr>
  <tr><td height="20">
    <a4j:outputPanel ajaxRendered="true">
    <h:messages id="lblMessages" styleClass="messages" infoClass="infoClass" errorClass="errorClass"
                warnClass="warnClass" showDetail="true" errorStyle="color:red;"
                warnStyle="color:green;" infoStyle="color:black;" fatalStyle="color:black"/>
    </a4j:outputPanel>
      </td>
  </tr>
  <tr><td align="left">
  <fieldset><legend>Seleccione la Busqueda</legend>
  <table width="763" border="0" cellpadding="0" cellspacing="0">
  <tr><td width="150" height="35"></td>
      <td width="110" height="35" align="left" valign="middle">
         <h:outputLabel value="Buscar por: " styleClass="texto22" /></td>
      <td width="363" height="35" align="left" valign="middle">
          <h:selectOneMenu value="#{jasperController.opcion}" styleClass="fondo012" onchange="submit();">
              <f:selectItem itemValue="0" itemLabel="-------------Seleccionar------------" />
              <f:selectItem itemValue="1" itemLabel="Reportar por Fecha" />
              <f:selectItem itemValue="3" itemLabel="Reportar por Responsable" />
              <f:selectItem itemValue="2" itemLabel="Reportar Todo" />
          </h:selectOneMenu></td>
    <td width="140" height="35"></td>
  </tr>
  <h:panelGroup rendered="#{jasperController.opcion==1}">
  <tr><td width="150" height="35"></td>
      <td width="110" height="35" align="left" valign="middle">
         <h:outputLabel value="Seleccione Fecha: " styleClass="texto22" /></td>
      <td width="363" height="35" align="left" valign="middle">
          <r:calendar value="#{jasperController.fecha}" datePattern="dd/MM/yyyy" cellWidth="15"
           styleClass="fondo012" inputClass="cajaCentrada" /> </td>
    <td width="140" height="35"></td>
  </tr>
  </h:panelGroup>
  <h:panelGroup rendered="#{jasperController.opcion==3}">
  <tr><td width="150" height="35"></td>
      <td width="110" height="35" align="left" valign="middle">
         <h:outputLabel value="Responsable: " styleClass="texto22" /></td>
      <td width="363" height="35" align="left" valign="middle">
          <h:selectOneMenu value="#{jasperController.responsable}" styleClass="fondo012">
            <f:selectItem itemValue="NN" itemLabel="---------Seleccionar---------" />
            <f:selectItem itemValue="Rosa Purizaca P." itemLabel="Rosa Purizaca P." />
            <f:selectItem itemValue="César Vásquez L." itemLabel="César Vásquez L." />
            <f:selectItem itemValue="William Gastañuedi C." itemLabel="William Gastañuedi C." />
          </h:selectOneMenu> </td>
    <td width="140" height="35"></td>
  </tr>
  </h:panelGroup>
  <tr><td width="150" height="35"></td>
      <td colspan="3" height="35" align="left" valign="middle">
          <h:commandButton action="#{jasperController.exportarPDF}" value="Generar PDF" styleClass="enlace9" />
          <h:outputLabel value=" " />
          <h:commandButton action="#{jasperController.terminar}" value=" Cancelar " styleClass="enlace9" />
      </td>
  </tr>
  </table>
  </fieldset>
  </td></tr>
  </table>
</h:form>
</f:view>

